//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
//
//   PACKAGE   : dcf
//   FILE      : LocationService.java
//   CLASS     : LocationService
//   DATE      : 2006-04-01
//   
//   DESCRIPTION
//   The LocationService is what enables the location independent communication within the DCF. Endpoints 
//   (components) register as a publisher or subscriber of a service. The LocationService keeps track of 
//   exisiting endpoints and when a connection can be established, it informs the endpoints. Subscribers to a
//   service are given the enpoint information for publishers and vise-versa. Conversely, when endpoints 
//   are done with a service, they can deregister. Endpoints still up and running are informed of the change.
//   
//   This is a dynamic service. Publishers and subscribers can register and deregister at any time.
//   
//
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
//
//   Copyright (c) 2006 by Hal Smith
//
//   Permission is hereby granted, free of charge, to any person obtaining a copy of this source code 
//   (the "Code")to deal with the Code without restriction, including without limitation the rights to use, copy,
//   modify, merge, publish and distribute the Code, and to permit persons to whom the Code is furnished to do 
//   so, subject to the following conditions:
//
//   The above copyright notice and this permission notice shall be included in all copies or substantial 
//   portions of the Software.
//   
//
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
//
//   VERSION HISTORY
//
//
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

package dcf;


public class LocationService {


    // Constructor.
	// 
	// This constructor gets the LocationService up and running, listening at the specified endpoint. Problems 
	// with the initialization of the service are fatal. In such a case, the exception StartupException is 
	// thrown and an error is logged. There are no other exceptions thrown by this operation.
	// 
	public LocationService (Endpoint endpoint) throws InitializationException {
		
		// Create the locatin service behavior and establish the location service as a component using the
		// supplied endpoint.
		//
		LocationServiceBehavior lsBehavior = new LocationServiceBehavior();
		
		Component c = new Component(endpoint, lsBehavior);
	
	} // constructor

} // LocationService